import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'
import kmHome from '@/components/Home/index'
import notFoundPage from '@/components/notFoundPage/index'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Hello',
      component: Hello
    }, {
      path: '/home',
      name: 'km-home',
      component: kmHome
    }, {
      path: '/404',
      name: '404',
      component: notFoundPage
    }, {
      path: '*',
      name: 'notFoundPage',
      redirect: {
        name: '404'
      }
    }
  ]
})
